package com.mask.im.business.model.entity;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Message {
    //id
    private Integer id;
    //父id（带回复功能使用）
    private Integer parentId;
    //发件人
    private Integer sender;
    //收件人
    private Integer addressee;
    //消息标题
    private String messageTitle;
    //消息内容
    private String messageContent;
    //消息类型（单播，广播）
    private Integer messageType;
    //用户是否删除
    private String userIsDelete;
    //发送时间
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}

